Skip to content

V3#26

Merged
SerhiyGreench merged 4 commits into
masterfrom
v3
Jul 9, 2026
Merged

V3#26
SerhiyGreench merged 4 commits into
masterfrom
v3

Conversation

@SerhiyGreench

Copy link
Copy Markdown
Contributor

No description provided.

The 'skips interface entries with no addresses' spec patched
networkInterfaces on the CommonJS os object, which the module-mocked
ESM binding never reads — the test passed against the real interfaces
(false positive) and the undefined-entry guard in
UDPWorker.selectNetworkInterface() stayed uncovered.

The os mock now routes networkInterfaces through a mutable holder
(networkInterfacesMock.impl) that tests swap at call time, so the
mocked binding observes the fixture. Line coverage: 2567/2567 (100%).
The default import of a builtin module is the same live, mutable
CommonJS module object require() returns (unlike an import-namespace,
which is frozen), so the util.inspect patching keeps working and the
emitted spec no longer needs a createRequire shim.
- package-lock.json: record the engines requirement (node >=22.12.0)
  introduced by the ESM migration
- copyEventEmitter spec: drop redundant explanatory comments
@SerhiyGreench SerhiyGreench merged commit 21bc361 into master Jul 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant